<script type="text/javascript">
var process_request = "<?php echo $this->_var['lang']['process_request']; ?>";
</script>
<link href="themes/puke/css/css.css" rel="stylesheet" type="text/css" />
<link href="themes/puke/css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
function show_ul(id){
  document.getElementById(id).style.display = 'block';
}
function hide_ul(id){
  document.getElementById(id).style.display = 'none';
}

function add_favorite(){
  var url = window.location.href;
  try {
      window.external.addFavorite(url, jQuery('title').text());
  }
  catch(e) {
      try {
          window.sidebar.addPanel(jQuery('title').text(), url, "");
      }
      catch(e) {
          alert("浏览器不支持，请使用Ctrl+D进行添加哦");
      }
  }
}
</script>
<script type="text/JavaScript">
<!--
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
<script type="text/javascript">

<!--
function checkSearchForm()
{
    if(document.getElementById('keyword').value)
    {
        return true;
    }
    else
    {
        alert("<?php echo $this->_var['lang']['no_keywords']; ?>");
        return false;
    }
}
-->

</script>
<table width="960" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="482"><a href="index.php"><img src="themes/ecmoban_yesmywine/images/top-1.jpg" width="482" height="102" /></a></td>
    <td width="103" align="center">&nbsp;</td>
    <td width="375" align="center"><table width="333" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="309" height="32" align="left" valign="middle"><font id="ECS_MEMBERZONE"><?php 
$k = array (
  'name' => 'member_info',
);
echo $this->_echash . $k['name'] . '|' . serialize($k) . $this->_echash;
?> </font><a href="javascript:add_favorite();">收藏本站 </a></td>
      </tr>
      <tr>
        <td height="24" align="left" valign="middle">
          <table width="360" border="0" cellspacing="0" cellpadding="0">
            <form id="searchForm" name="searchForm" method="get" action="search.php" onSubmit="return checkSearchForm()">            
              <tr>
                <td width="222"><input name="keywords" type="text" size="40" id="keyword" value="<?php echo htmlspecialchars($this->_var['search_keywords']); ?>" /></td>
                <td width="111" align="left"><input type="image" src="themes/ecmoban_yesmywine/images/suosuo.jpg" width="81" height="31" name="imageField"></td>
              </tr>
            </form>
          </table>
        </td>
      </tr>
      <tr>
        <td height="35" align="left" valign="middle">
          <strong>客服热线: 400-008-1855</strong>
          <?php $_from = $this->_var['qq']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'im');if (count($_from)):
    foreach ($_from AS $this->_var['im']):
?>
          <?php if ($this->_var['im']): ?>
          <a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=<?php echo $this->_var['im']; ?>&site=<?php echo $this->_var['shop_name']; ?>&menu=yes"><img border="0" src="http://wpa.qq.com/pa?p=2:<?php echo $this->_var['im']; ?>:52" alt="点击这里给我发消息" title="点击这里给我发消息"/></a>
          <?php endif; ?>
          <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
          <span style="height:18px;line-height:18px;display:inline-block;">&nbsp;&nbsp;&nbsp;&nbsp;<?php 
$k = array (
  'name' => 'cart_info',
);
echo $this->_echash . $k['name'] . '|' . serialize($k) . $this->_echash;
?></span>
        </td>
      </tr>
    </table></td>
  </tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="43" align="center" background="themes/ecmoban_yesmywine/images/danghangditu.jpg"><table width="960" border="0" cellspacing="0" cellpadding="0">
      <tr id="menu">
        <td width="137" align="right"><a href="index.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image1','','themes/puke/images/b-1.jpg',1)"><img src="themes/puke/images/a-1.jpg" name="Image1" width="137" height="56" border="0" id="Image1" /></a></td>
        <td width="137">
          <div onmouseout="MM_swapImgRestore();hide_ul('sub1')" onmouseover="MM_swapImage('Image2','','themes/puke/images/b-2.jpg',1);show_ul('sub1')">
            <a href="category.php?id=5"><img src="themes/puke/images/a-2.jpg" name="Image2" width="137" height="56" border="0" id="Image2" /></a>
            <ul class="sub" id="sub1">
            <?php $_from = $this->_var['product_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'product');$this->_foreach['product'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['product']['total'] > 0):
    foreach ($_from AS $this->_var['product']):
        $this->_foreach['product']['iteration']++;
?>
              <li><a href="category.php?id=<?php echo $this->_var['product']['cat_id']; ?>" title="<?php echo $this->_var['product']['cat_name']; ?>"><?php echo $this->_var['product']['cat_name']; ?></a></li>
            <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
            </ul>
          </div>
        </td>
        <td width="137">
          <div onmouseout="MM_swapImgRestore();hide_ul('sub2')" onmouseover="MM_swapImage('Image3','','themes/puke/images/b-3.jpg',1);show_ul('sub2')">
            <a href="category.php?id=2"><img src="themes/puke/images/a-3.jpg" name="Image3" width="137" height="56" border="0" id="Image3" /></a>
            <ul class="sub" id="sub2">
            <?php $_from = $this->_var['wine_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'wine');$this->_foreach['wine'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['wine']['total'] > 0):
    foreach ($_from AS $this->_var['wine']):
        $this->_foreach['wine']['iteration']++;
?>
              <?php if ($this->_var['wine']['cat_name'] == '鹅肝酱'): ?>
                <li><a href="topic.php?topic_id=1" title="<?php echo $this->_var['wine']['cat_name']; ?>"><?php echo $this->_var['wine']['cat_name']; ?></a></li>
              <?php elseif ($this->_var['wine']['cat_name'] == '雪茄'): ?>
                <li><a href="topic.php?topic_id=2" title="<?php echo $this->_var['wine']['cat_name']; ?>"><?php echo $this->_var['wine']['cat_name']; ?></a></li>
              <?php elseif ($this->_var['wine']['cat_name'] == '烟斗'): ?>
                <li><a href="topic.php?topic_id=3" title="<?php echo $this->_var['wine']['cat_name']; ?>"><?php echo $this->_var['wine']['cat_name']; ?></a></li>
              <?php else: ?>
                <li><a href="category.php?id=<?php echo $this->_var['wine']['cat_id']; ?>" title="<?php echo $this->_var['wine']['cat_name']; ?>"><?php echo $this->_var['wine']['cat_name']; ?></a></li>
              <?php endif; ?>
            <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
            </ul>
          </div>
        </td>
        <td width="137">
          <div onmouseout="MM_swapImgRestore();hide_ul('sub3')" onmouseover="MM_swapImage('Image4','','themes/puke/images/b-4.jpg',1);show_ul('sub3')">
            <a href="topic.php?topic_id=24" <?php if ($this->_var['user_rank'] != 2): ?>title="限vip会员浏览"<?php endif; ?>><img src="themes/puke/images/a-4.jpg" name="Image4" width="137" height="56" border="0" id="Image4" /></a>
            <ul class="sub" id="sub3">
              <li><a href="article_cat.php?id=24">法国</a></li>
              <li><a href="article_cat.php?id=26">意大利</a></li>
              <li><a href="article_cat.php?id=25">德国</a></li>
              <li><a href="article_cat.php?id=30">西班牙</a></li>
              <li><a href="article_cat.php?id=29">智利</a></li>
              <li><a href="article_cat.php?id=27">美国</a></li>
              <li><a href="article_cat.php?id=28">澳洲</a></li>
            </ul>
          </div>
        </td>
        <td width="137"><a href="article_cat.php?id=4" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image5','','themes/puke/images/b-5.jpg',1)"><img src="themes/puke/images/a-5.jpg" name="Image5" width="137" height="56" border="0" id="Image5" /></a></td>
        <td width="137"><a href="article.php?id=39" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image6','','themes/puke/images/b-6.jpg',1)"><img src="themes/puke/images/a-6.jpg" name="Image6" width="137" height="56" border="0" id="Image6" /></a></td>
        <td width="137"><a href="article.php?id=4" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image7','','themes/puke/images/b-7.jpg',1)"><img src="themes/puke/images/a-7.jpg" name="Image7" width="137" height="56" border="0" id="Image7" /></a></td>
      </tr>
    </table></td>
  </tr>
</table>